import request from '@/utils/request'

// 查询分享评论列表
export function listShareComment(query) {
  return request({
    url: '/backend/shareComment/list',
    method: 'get',
    params: query
  })
}

// 查询分享评论详细
export function getShareComment(commentId) {
  return request({
    url: '/backend/shareComment/' + commentId,
    method: 'get'
  })
}

// 新增分享评论
export function addShareComment(data) {
  return request({
    url: '/backend/shareComment',
    method: 'post',
    data: data
  })
}

// 修改分享评论
export function updateShareComment(data) {
  return request({
    url: '/backend/shareComment',
    method: 'put',
    data: data
  })
}

// 删除分享评论
export function delShareComment(commentId) {
  return request({
    url: '/backend/shareComment/' + commentId,
    method: 'delete'
  })
}
